package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/distributionRuleManagement/controller"
	"gowork/distributionRuleManagement/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	drmc := new(controller.DistributionRuleManagementController)
	app.Post("/toGrantAuthorization", drmc.ToGrantAuthorization)

	app.Listen(2999)
}
